/*
 * @Author: zjf
 * @Date: 2023-11-28 21:21:25
 * @LastEditors: zjf
 * @LastEditTime: 2023-12-06 18:58:00
 * @Description: 投资和纳统
 */
export const formColmuns = [
  // 项目基本信息
  { label: "项目名称", prop: "projectName", dataType: "input", disabled: true },
  {
    label: "建设单位",
    prop: "constructionEntity",
    dataType: "input",
    disabled: true,
  },
  {
    label: "项目所在年度",
    prop: "projectYear",
    dataType: "input",
    append: "年",
    disabled: true,
  },
  {
    label: "建设起止时间",
    prop: "projectStartEndDate",
    dataType: "input",
    disabled: true,
  },

  {
    label: "项目计划总投资",
    prop: "plannedInvestmentTotal",
    dataType: "input",
    append: "万元",
  },

  {
    label: "结算金额",
    prop: "settlementAmount",
    dataType: "input",
    append: "万元",
  },

  // 完成投资明细
  {
    label: "完成投资明细",
    prop: "dividingLine1",
    dataType: "dividingLine",
    span: 24,
  },
  {
    label: "实际投资总额",
    prop: "inveAmt",
    dataType: "input",
    append: "万元",
    disabled: true,
  },
  {
    label: "至去年年底累计完成投资",
    prop: "inveAmtLy",
    dataType: "input",
    append: "万元",
    disabled: true,
  },
  {
    label: "今年累计完成投资",
    prop: "inveAmtCy",
    dataType: "input",
    append: "万元",
    disabled: true,
  },

  // 纳统投资明细
  {
    label: "纳统投资明细",
    prop: "dividingLine2",
    dataType: "dividingLine",
    span: 24,
  },
  {
    label: "至去年年底累计纳统投资",
    prop: "inveAmtLys",
    dataType: "input",
    append: "万元",
    disabled: true,
  },
  {
    label: "今年累计纳统投资",
    prop: "inveAmtCys",
    dataType: "input",
    append: "万元",
    disabled: true,
  },

  // 合同明细
  {
    label: "合同明细",
    prop: "dividingLine3",
    dataType: "dividingLine",
    span: 24,
  },
  {
    label: "合同总金额",
    prop: "contractAmount",
    dataType: "input",
    append: "万元",
    disabled: true,
  },


  // 申请明细
  {
    label: "申请明细",
    prop: "dividingLine4",
    dataType: "dividingLine",
    span: 24,
  },
  {
    label: "累计申请金额",
    prop: "applyAmt",
    dataType: "input",
    append: "万元",
    disabled: true,
  },

  // 支付明细
  {
    label: "支付明细",
    prop: "dividingLine5",
    dataType: "dividingLine",
    span: 24,
  },
  {
    label: "累计支付金额",
    prop: "payAmt",
    dataType: "input",
    append: "万元",
    disabled: true,
  },

];

export const tableColmuns = [
  {
    label: "项目名称",
    prop: "projectName",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "建设单位",
    prop: "constructionEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "项目所在年度",
    prop: "projectYear",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "建设起止时间",
    prop: "projectStartEndDate",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },

  {
    label: "项目计划总投资(万元)",
    prop: "plannedInvestmentTotal",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "实际投资总额(万元)",
    prop: "inveAmt",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "至去年年底累计完成投资(万元)",
    prop: "inveAmtLy",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "今年累计完成投资(万元)",
    prop: "inveAmtCy",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },

  {
    label: "合同总金额(万元)",
    prop: "contractAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "结算金额(万元)",
    prop: "settlementAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },

  {
    label: "累计申请金额(万元)",
    prop: "applyAmt",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "累计支付金额(万元)",
    prop: "payAmt",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },

  {
    label: "至去年年底累计纳统投资(万元)",
    prop: "inveAmtLys",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "今年累计纳统投资(万元)",
    prop: "inveAmtCys",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
];

export const formData = {
  projectName: "", // 项目名称
  constructionEntity: "", // 建设单位
  projectYear: "", // 项目所在年度
  projectStartEndDate: "", // 建设起止时间
  plannedInvestmentTotal: "", // 项目计划总投资

  inveAmt: "", // 实际投资总额
  inveAmtLy: "", // 至去年年底累计完成投资
  inveAmtCy: "", // 今年累计完成投资
  contractAmount: "", // 合同总金额
  settlementAmount: "", // 结算金额
  applyAmt: "", // 累计申请金额
  payAmt: "", // 累计支付金额
  inveAmtLys: "", // 至去年年底累计纳统投资
  inveAmtCys: "", // 今年累计纳统投资
};

export const rules = {};

const api = window.$crud("project");
let config = {
  api: api,
  formColmuns: formColmuns,
  tableColmuns: tableColmuns,
  formData: formData,
  rules: rules,
  name: "投资和纳统",
  width: 170
};

export default config;
